//
//  MissionView.h
//  eye_hunter
//
//  Created by cherry on 10-10-6.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AudioToolbox/AudioToolbox.h>
#import "PicMission.h"
#import "ScrollView.h"
#import "HunterConst.h"
#import "MovingFrame.h"

@interface MissionView : UIImageView {
	PicMission *mission;
	int remain;
	NSMutableArray *targets;
    ScrollView *scrollView;
    UILabel *scoreLabel;
    UILabel *timeLabel;
    int score;
    int timeRemain;
    NSTimer *gameTimer;
    
    //hit/miss effect
    CGPoint starLocation;
    NSString *starType;
    SystemSoundID sound1;
    MovingFrame *effectFrames;
}

@property (retain,nonatomic) PicMission *mission;
@property (nonatomic) int remain;
@property (retain,nonatomic) NSMutableArray *targets;
@property (retain,nonatomic) ScrollView *scrollView;
@property (nonatomic) CGPoint starLocation;
@property (retain,nonatomic) NSString *starType;
@property (retain,nonatomic) MovingFrame *effectFrames;
@property (retain,nonatomic) UILabel *scoreLabel;
@property (nonatomic) int score;

-(Boolean) foundTarget: (int) targetId;
-(void)showMissEffect:(NSString *) starImage In:(CGPoint) location;
-(void)showHitEffect:(NSString *) starImage In:(CGPoint) location;
-(void)makeHitStar;
-(void)playSound: (NSString *)name;
-(void)addScore:(int) addScores;
-(void)allClear;
-(void)showAllClearMsg;
@end
